package com.tenton.entity;

import com.tenton.annotation.ObjectEnable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @ClassName：Student
 * @Description：
 * @Author：tangdong
 * @Date：2022/10/23 20:19
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "学生类Vo")
public class Student {
    @ApiModelProperty("Id")
    private Integer id;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("成绩")
    private Double score;
    @ApiModelProperty("家庭")
    @ObjectEnable
    private Family family;
}
